home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of MacTutor - S…e Code for Volumes 1 to 5
/
The Best of MacTutor - Source Code for Volume 1-5 (Wayzata Technology)(6031)(1990).bin
/
Source Code
/
#24 (Sep 87)
/
fortran source
/
misc stuff
/
tbxfix2.par
next >
Wrap
Text File
|
1986-03-18
|
2KB
|
63 lines
* This file contains parameter definitions which were incorrect in the
* initial release of Microsoft FORTRAN 2.1. Several OS traps were
* defined with the 'save A0' flag set to zero (this indicates that
* A0 should be restored) for OS functions which return a value in A0.
* These traps are found in the following FORTRAN include files:
* toolbx.par
* memory.inc
* OSutilities.inc
*
* 18 Mar 86 Added fix to HOMERESFILE (in toolbx.par, resource.inc)
* 18 Mar 86 Added fix to EVENTAVAIL (in toolbx.par, event.inc)
*
* MaxMem is a special case in that it returns 2 values. Pascal returns one
* of these in the function's argument; the FORTRAN toolbx.sub function
* has no provision for this. For those requiring the Grow value, the
* MAXMEM2 definition below should work. MAXMEM will return only
* the size of the largest contiguous block, MAXMEM2 will return only
* the Grow size.
* FUNCTION MaxMem (VAR Grow: Size): Size;
INTEGER MAXMEM
PARAMETER (MAXMEM=Z'11DA0024')
INTEGER MAXMEM2
PARAMETER (MAXMEM2=Z'11DA00A4')
* FUNCTION NewHandle (LogicalSize: Size): Handle;
INTEGER NEWHANDLE
PARAMETER (NEWHANDLE=Z'122000A8')
* FUNCTION HandleZone (H: Handle): THz;
INTEGER HANDLEZONE
PARAMETER (HANDLEZONE=Z'126800A8')
* FUNCTION RecoverHandle (P: Ptr): Handle;
INTEGER RECOVERHANDLE
PARAMETER (RECOVERHANDLE=Z'128800A4')
* FUNCTION NewPtr (logicalSize: Size) : Ptr;
INTEGER NEWPTR
PARAMETER (NEWPTR=Z'11E000A8')
* FUNCTION GetTrapAddress (trapNum: INTEGER) : LongInt;
INTEGER GETTRAPADDRESS
PARAMETER (GETTRAPADDRESS=Z'146000A0')
* FUNCTION GetZone : THz;
INTEGER GETZONE
PARAMETER (GETZONE=Z'11A000A8')
* FUNCTION PtrZone (P: Ptr): THz;
INTEGER PTRZONE
PARAMETER (PTRZONE=Z'148800A8')
* FUNCTION HomeResFile (TheResource: Handle) : Integer;
INTEGER HOMERESFILE
PARAMETER (HOMERESFILE=Z'9A450000')
* FUNCTION EventAvail (EventMask: Integer; VAR TheEvent: EventRecord):
* Boolean;
INTEGER EVENTAVAIL
PARAMETER (EVENTAVAIL=Z'971CE000')